/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EditInstallation.java
 *
 * Created on Nov 5, 2011, 6:19:51 PM
 */
package mpinventory;

import java.sql.*;
import java.util.List;
import java.util.ArrayList;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.DefaultListModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
/**
 *
 * @author msi
 */
public class EditInstallation extends javax.swing.JPanel {

    private Connection conn;
    private Dimension size;
    public InstallationQuery installationQuery;
    private ItemQuery itemQuery;
    private List<Item> items;
    public int width;
    public int height;
    public int screenWidth;
    public int screenHeight;
    private int selectedIndex;
    private int nRows=0;
    public boolean backToMainMenu=false;
    private DefaultTableModel model;
    private String data[][] = {};
    private String col[] = {"Item", "Quantity", "Unit"};

    private List<Integer> origIDs;
    private List<Float> quantities;
    private List<String> units;
    private List<Integer> itemIDs;
    private List<String> descriptions;
    /** Creates new form EditUser */
    public EditInstallation(Connection conn, int screenWidth, int screenHeight, int installationID, String brandName, String brandModel, float horsePower, String brandDescription, List<Integer> IDs, List<Float> quantities, List<String> units, List<Integer> itemIDs, List<String> descriptions) {
        this.conn=conn;
        this.screenWidth=screenWidth;
        this.screenHeight=screenHeight;
        initComponents();
        size=this.getPreferredSize();
        width=size.width;
        height=size.height+35;
        installationQuery=new InstallationQuery(conn);
        txtInsEInsID.setText(installationID+"");
        txtInsEBrand.setText(brandName);
        txtInsEModel.setText(brandModel);
        txtInsEDescription.setText(brandDescription);
        txtInsEHP.setText(horsePower+"");
        origIDs=IDs;
        this.itemIDs=itemIDs;
        this.quantities=quantities;
        this.units=units;
        this.descriptions=descriptions;
        model = new DefaultTableModel(data, col){
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Float.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, true, false
            };
            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        };
        tableInsEItemsSet.setModel(model);
        tableInsEItemsSet.getColumnModel().getColumn(0).setResizable(false);
        tableInsEItemsSet.getColumnModel().getColumn(0).setPreferredWidth(250);
        tableInsEItemsSet.getColumnModel().getColumn(1).setResizable(false);
        tableInsEItemsSet.getColumnModel().getColumn(1).setPreferredWidth(10);
        tableInsEItemsSet.getColumnModel().getColumn(2).setResizable(false);
        tableInsEItemsSet.getColumnModel().getColumn(2).setPreferredWidth(10);
        initializeItemList();
        try{
        for(int i=0; i<itemIDs.size();i++){
            Object[] rowData=new Object[3];
            rowData[0]=descriptions.get(i);
            rowData[1]=quantities.get(i);
            rowData[2]=units.get(i);
            model.insertRow(nRows,rowData);
            nRows++;
        }
        }catch(Exception e){}
        tableInsEItemsSet.setModel(model);
    }
    @Override
    public int getWidth(){
        return width;
    }
    @Override
    public int getHeight(){
        return height;
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        txtInsEInsID = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        txtInsEModel = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        listInsEItems = new javax.swing.JList();
        jLabel10 = new javax.swing.JLabel();
        btnInsEAdd = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        btnInsERemove = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        btnInsESave = new javax.swing.JButton();
        btnInsECancel = new javax.swing.JButton();
        txtInsEHP = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tableInsEItemsSet = new javax.swing.JTable();
        txtInsEDescription = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        txtInsEBrand = new javax.swing.JTextField();

        jLabel1.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 25));
        jLabel1.setText("Edit Installation Data");

        jLabel3.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel3.setText("Installation ID:");

        txtInsEInsID.setEditable(false);
        txtInsEInsID.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));

        jLabel6.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel6.setText("Brand:");

        jLabel4.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel4.setText("Model:");

        txtInsEModel.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));

        jLabel7.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel7.setText("List of materials:");

        jScrollPane1.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));

        listInsEItems.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));
        listInsEItems.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        listInsEItems.setRequestFocusEnabled(false);
        jScrollPane1.setViewportView(listInsEItems);

        jLabel10.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel10.setText("Add to -------------->");

        btnInsEAdd.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        btnInsEAdd.setText("Add");
        btnInsEAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addItemActionPerformed(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel9.setText("Remove from ----->");

        btnInsERemove.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        btnInsERemove.setText("Remove");
        btnInsERemove.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                removeItemActionPerformed(evt);
            }
        });

        jLabel8.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel8.setText("Materials needed for installation:");

        btnInsESave.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        btnInsESave.setText("Save");
        btnInsESave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveActionPerformed(evt);
            }
        });

        btnInsECancel.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        btnInsECancel.setText("Cancel");
        btnInsECancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelActionPerformed(evt);
            }
        });

        txtInsEHP.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));

        jLabel5.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel5.setText("Horsepower:");

        tableInsEItemsSet.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15)); // NOI18N
        tableInsEItemsSet.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Item", "Quantity", "Unit"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Float.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        tableInsEItemsSet.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane2.setViewportView(tableInsEItemsSet);
        tableInsEItemsSet.getColumnModel().getColumn(0).setResizable(false);
        tableInsEItemsSet.getColumnModel().getColumn(0).setPreferredWidth(250);
        tableInsEItemsSet.getColumnModel().getColumn(1).setResizable(false);
        tableInsEItemsSet.getColumnModel().getColumn(1).setPreferredWidth(10);
        tableInsEItemsSet.getColumnModel().getColumn(2).setResizable(false);
        tableInsEItemsSet.getColumnModel().getColumn(2).setPreferredWidth(10);

        txtInsEDescription.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));

        jLabel11.setFont(new java.awt.Font("Arial Rounded MT Bold", 1, 15));
        jLabel11.setText("Description:");

        txtInsEBrand.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 15));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txtInsEInsID, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(34, 34, 34))
                                        .addComponent(jLabel7))
                                    .addGap(194, 194, 194))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                                    .addGap(18, 18, 18)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel9)
                                            .addComponent(jLabel10)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(btnInsERemove)
                                                .addGap(28, 28, 28)))
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(btnInsEAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(29, 29, 29))))
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(jLabel6)
                                        .addComponent(jLabel4))
                                    .addGap(18, 18, 18)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(txtInsEModel, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)
                                        .addComponent(txtInsEBrand, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE))))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 282, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(btnInsESave, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(93, 93, 93)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(44, 44, 44)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 465, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel8)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel5)
                                        .addGap(18, 18, 18)
                                        .addComponent(txtInsEHP, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel11)
                                        .addGap(23, 23, 23)
                                        .addComponent(txtInsEDescription))))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(29, 29, 29)
                                .addComponent(btnInsECancel, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(341, 341, 341))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(txtInsEInsID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jLabel11)
                    .addComponent(txtInsEDescription, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtInsEBrand, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtInsEHP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addGap(18, 18, 18)
                        .addComponent(jLabel8)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane2, 0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtInsEModel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                        .addGap(18, 18, 18)
                        .addComponent(jLabel7)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(56, 56, 56)
                                .addComponent(jLabel10)
                                .addGap(18, 18, 18)
                                .addComponent(btnInsEAdd)
                                .addGap(49, 49, 49)
                                .addComponent(jLabel9)
                                .addGap(18, 18, 18)
                                .addComponent(btnInsERemove))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPane1)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnInsECancel)
                    .addComponent(btnInsESave))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void initializeItemList(){
        itemQuery=new ItemQuery(conn);
        items=itemQuery.initializeItems();
        DefaultListModel listModel = new DefaultListModel();
        for(int i=0;i<items.size();i++)
            listModel.addElement(items.get(i).getDescription());
        listInsEItems.setModel(listModel);
        selectedIndex=0;
        listInsEItems.addListSelectionListener(new ListSelectionListener(){
            @Override
            public void valueChanged(ListSelectionEvent e){
                try{
                    selectedIndex=listInsEItems.getSelectedIndex();
                }catch(Exception f){}
            }
        });
    } //end of initializeItemList() method
    private boolean validTable(){
        for(int i=0;i<model.getRowCount();i++)
            for(int j=0;j<model.getColumnCount();j++)
                try{
                    if(model.getValueAt(i,j).equals(null))
                        return false;
                }catch(NullPointerException e){
                    return false;
                }
        return true;
    } //end of validTable() method
    private boolean tableIsEmpty(){
        for(int i=0;i<model.getRowCount();i++)
            for(int j=0;j<model.getColumnCount();j++)
                try{
                    if(!model.getValueAt(i,j).toString().isEmpty())
                        return false;
                }catch(NullPointerException e){
                    return false;
                }
        return true;
    } //end of tableIsEmpty() method
    private void getTableValues(){
        descriptions=new ArrayList<String>();
        quantities=new ArrayList<Float>();
        units=new ArrayList<String>();
        String[] rowData=new String[model.getColumnCount()];
        for(int i=0;i<model.getRowCount();i++){
            for(int j=0;j<model.getColumnCount();j++)
                rowData[j]=model.getValueAt(i, j).toString();
            descriptions.add(rowData[0]);
            quantities.add(Float.parseFloat(rowData[1]));
            units.add(rowData[2]);
        }
    }
    private void cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelActionPerformed
        JOptionPane pane=new JOptionPane("Are you sure you want to go back to the main menu? Please make sure that all changes have been saved.");
        Object[] options=new String[]{"Yes","No"};
        pane.setOptions(options);
        JDialog dialog = pane.createDialog(new JFrame(), "Back To Main Menu?");
        dialog.show();
        if(options[0].equals(pane.getValue())) //YES
            backToMainMenu=true;
    }//GEN-LAST:event_cancelActionPerformed

    private void saveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveActionPerformed
        installationQuery=new InstallationQuery(conn);
        if(tableInsEItemsSet.isEditing())
            JOptionPane.showMessageDialog(null, "Can't save while editing a cell!");
        else if(txtInsEBrand.getText().equals("") || txtInsEModel.getText().equals("") || txtInsEDescription.getText().equals("") || txtInsEHP.getText().equals("") || !validTable() || tableIsEmpty())
            JOptionPane.showMessageDialog(null, "All fields cannot be empty!");
        else{
            JOptionPane pane=new JOptionPane("Are you sure you want to edit this installation?");
            Object[] options=new String[]{"Yes","No"};
            pane.setOptions(options);
            JDialog dialog = pane.createDialog(new JFrame(), "Confirm Installation Edition");
            dialog.show();
            if(options[0].equals(pane.getValue())){
                getTableValues();
                installationQuery.editInstallation(Integer.parseInt(txtInsEInsID.getText()),txtInsEBrand.getText(),txtInsEModel.getText(),Float.parseFloat(txtInsEHP.getText()),txtInsEDescription.getText(),quantities,units,itemIDs,descriptions,origIDs);
                backToMainMenu=true;
            } //YES
        }
    }//GEN-LAST:event_saveActionPerformed

    private void addItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addItemActionPerformed
        Object[] rowData=new Object[3];
        rowData[0]=items.get(selectedIndex).getDescription();
        rowData[2]=items.get(selectedIndex).getQuantityUnit();
        model.insertRow(nRows,rowData);
        nRows++;
        tableInsEItemsSet.setModel(model);
        itemIDs.add(items.get(selectedIndex).getID());
    }//GEN-LAST:event_addItemActionPerformed

    private void removeItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeItemActionPerformed
        if(tableInsEItemsSet.isEditing())
            JOptionPane.showMessageDialog(null, "Can't remove while editing a cell!");
        else if(tableInsEItemsSet.getSelectedRow() == -1)
            JOptionPane.showMessageDialog(null, "Nothing selected!");
        else{
            itemIDs.remove(tableInsEItemsSet.getSelectedRow());
            model.removeRow(tableInsEItemsSet.getSelectedRow());
            nRows--;
        }
        tableInsEItemsSet.setModel(model);
    }//GEN-LAST:event_removeItemActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnInsEAdd;
    private javax.swing.JButton btnInsECancel;
    private javax.swing.JButton btnInsERemove;
    private javax.swing.JButton btnInsESave;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JList listInsEItems;
    private javax.swing.JTable tableInsEItemsSet;
    private javax.swing.JTextField txtInsEBrand;
    private javax.swing.JTextField txtInsEDescription;
    private javax.swing.JTextField txtInsEHP;
    private javax.swing.JTextField txtInsEInsID;
    private javax.swing.JTextField txtInsEModel;
    // End of variables declaration//GEN-END:variables
}
